/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ivanbiz.injection;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author City_Z
 */
public class CallCtx {
    private static ApplicationContext ctx = null;
    
    public static Object getBean(String beanName){
        if(ctx==null){
           ctx =  new ClassPathXmlApplicationContext("com/ivanbiz/model/xml/applicationContext-RemoteHttp.xml");
        }
        return ctx.getBean(beanName);
    }
}
